const Koa=require('koa');
const app=new Koa();
const logger=require('./logger');
const resTime=require('./responseTime');


app.use(logger());
app.use(resTime());

app.use(ctx=>{
    ctx.body='Hello Koa!';
});

app.listen(4000,()=>{
    console.log('Koa2 port:4000----'+new Date().toLocaleTimeString());
});